package com.bistu.xiong.pojo;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class TulingUser {
    private String userId;

    private String username;

    private String password;

    private Integer sex;

    private String phone;

    private String portrait;

    private String description;

    private String token;

    private Date createTime;

    private Date updateTime;

    public TulingUser(String userId, String username, String password, Integer sex, String phone, String portrait, String description, String token, Date createTime, Date updateTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.phone = phone;
        this.portrait = portrait;
        this.description = description;
        this.token = token;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public TulingUser() {
        super();
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait == null ? null : portrait.trim();
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }
}